<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<title>全部商品</title>
		<%@include file="../common/common.jsp" %>
		<link rel="stylesheet" type="text/css" href="${ctx}/css/body.css"/>
		<script type="text/javascript" src="${ctx}/js/fastclick.js"></script>
	</head>

	<body>
		<header>
			<nav class="headerTwo">
				<img src="${ctx}/image/bg.png" alt="" />
				<a href="javascript:history.back(-1)" class="fl"><img src="${ctx}/image/return.png" alt="" /></a>
				<a href="${ctx}/goods/searchGoods">
					<div class="searchBox">
						<div></div>
					    <img src="${ctx}/image/sou.png" alt="" />
						<input type="text" name="" id="" value="${searchName}"  placeholder="搜索商品/店铺" />
						<img src="${ctx}/image/close.png" alt="" />
					</div>
				</a>
				<%-- <a href="searchResultO.html" class="headerRt"><img src="${ctx}/image/lb.png" alt="" /></a> --%>
				<a href="${ctx}/goods/queryGoodsResult?classId=${classId}&flag=1" class="headerRt"><img src="${ctx}/image/lb.png" alt="" /></a>
				
			</nav>
	</header>
	 <div class="allgoodO searchResult clearfix">
	 	<input type="hidden" name="classId" id="class_Id" value="${classId}">
	 	<input type="hidden" name="searchName" id="searchName" value="${searchName }">
  	     <ul class="storeC sanWang">
			<li class="sear fl">
				<span class="searWord">综合排序</span>
				<img src="${ctx}/image/down01.png" alt="" class="searImg"/>
				<ul class="clearfix">
					<li>
						<span class="fl" onclick="bySort('1','2')" >综合排序</span>
						<img src="${ctx}/image/picdh.png" alt="" class="fr"/>
					</li>
					<li>
						<span class="fl" onclick="bySort('1','2')" >新品优先</span>
						<img src="${ctx}/image/picdh.png" alt="" class="fr"/>
					</li>
					<li>
						<span class="fl" onclick="bySort('2','2')" >好评从高到低</span>
						<img src="${ctx}/image/picdh.png" alt="" class="fr"/>
					</li>
				</ul>
			</li>
			<li class="fl" onclick="bySort('3','2')" ><span>销量</span></li>
			<li class="storeCi fl" data-id="2">
				<span>价格</span>
				<img src="${ctx}/image/qh2.png" alt="" />
			</li>
		</ul>
      </div>
      <div class="allll"></div>
     <ul class="evaluateGoods allgoodsList searchResultO" id="searchGoodsListT">
     		<c:forEach items="${resultList}" var="goods" varStatus="status">
     			<c:choose>
     				<c:when test="${status.count%2!=0 }">
     					<li class="fl">
     				</c:when>
     				<c:otherwise>
     					<li class="fr">
     				</c:otherwise>
     			</c:choose>
       				<a href="${ctx}/goods/queryGoodsDetail?id=${goods.id}">
						<c:choose>	
							<c:when test="${goods.picture!=null}">
								<img src="${baseFile}${goods.picture}" alt="" class="evaluateGoodsI evaluateGoodsM" />
							</c:when>
							<c:otherwise>
								<img src="${ctx }/image/pic184.png" alt="" class="evaluateGoodsI evaluateGoodsM"/>
							</c:otherwise>
						</c:choose>
					</a>
					<div class="evaluateGoodsW">
						<p class="moreWord">${goods.name }</p>
						<c:if test="${goods.proTitle!='' }">
							<a href="javascript:void(0);">${goods.proTitle }</a>
						</c:if>
						<p class="prices">
							<b>¥ ${goods.marketPrice }</b>
							<span>月销 ${goods.monthSaleMount}笔</span>
							<span></span>
						</p>
					</div>
				</li>
       		</c:forEach>
     		<li class="pageRefresh" onclick="clickRefresh('2');">点击刷新<img src="${ctx}/image/huan.png" alt="刷新" /></li>
			
		</ul>
		<div class="mengban"></div>
		<div class="top">
			<%-- <a href="footprint.html"><img src="${ctx}/image/foot.png" alt="" /></a> --%>
			<%-- <a href="javascript:void(0);"><img src="${ctx}/image/foot.png" alt="" /></a>
			<a href="#"><img src="${ctx}/image/top.png" alt="" /></a> --%>
		</div>
		<script type="text/javascript" src="${ctx}/js/goods/goodsResult.js"></script>
  </body>
</html>